package com.qfedu.demo.service.impl;

import com.qfedu.demo.dao.UserDao;
import com.qfedu.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//@Component //@Component写在实现类当中不是写在接口中
//@Qualifier("normal")
@Service  //在这里可以用@service取代@Component
public class UserServiceNormal implements UserService {

    @Autowired
    private UserDao userDao;
    @Override
    public void add() {
        System.out.println("这是UserServiceNormal。。");
        userDao.add();

    }
}
